home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / falcon / programm.ing / nt_dsp1.lzh / NT_DSP1.MSA / FFT / SINEWAVE.ASM < prev    next >
Assembly Source File  |  1990-01-17  |  1KB  |  34 lines

  1. ;
  2. ; This program originally available on the Motorola DSP bulletin board.
  3. ; It is provided under a DISCLAMER OF WARRANTY available from
  4. ; Motorola DSP Operation, 6501 Wm. Cannon Drive W., Austin, Tx., 78735.
  5. ; Full-Cycle Sinewave Table Generator Macro.
  6. ; Last Update 25 Nov 86   Version 1.1
  7. ;
  8. sinewave        macro   points
  9. sinewave        ident   1,1
  10. ;
  11. ;       sinewave - macro to generate a full cycle sinewave table.
  12. ;               If points = 256 and sinewave is ORGed at Y:$100,
  13. ;               the sinewave table generated is identical to the
  14. ;               DSP56001 Y Data ROM contents.  Note that the base
  15. ;               address and memory space must be specified before
  16. ;               the macro is called.
  17. ;
  18. ;       points - number of points (1 - 65536)
  19. ;
  20. ; Latest revision - 25-Nov-86
  21. ;
  22. pi      equ     3.141592654
  23. freq    equ     2.0*pi/@cvf(points)
  24.  
  25. count   set     0
  26.         dup     points
  27.         dc      @sin(@cvf(count)*freq)
  28. count   set     count+1
  29.         endm
  30.  
  31.         endm    ;end of sinewave macro
  32.